<!DOCTYPE html>
<html lang="en">
<html xmlns:th="http://www.thymeleaf.org">
<link rel="stylesheet" href="./css/xadmin.css">
<script src="./lib/layui/layui.js" charset="utf-8"></script>
<head>
    <meta charset="UTF-8">
    <title>orderInformationInput</title>
</head>
<body>

    <div>
        <table border="1" class="layui-table">
            <tr class="layui-table-header">
                <td>商品id</td>
                <td>商品名字</td>
                <td>商品厂家</td>
                <td>商品规格</td>
                <td>商品型号</td>
                <td>商品数量</td>
                <td>商品价格</td>
                <td>本商品金额</td>
                <td>商品计量单位</td>
                <td>备注</td>
            </tr>
            <tr class="layui-table-body" th:each="orderAdd:${orderAdds}">
                <td th:text="${orderAdd.uid}"></td>
                <td th:text="${orderAdd.goodsName}"></td>
                <td th:text="${orderAdd.goodsFactory}"></td>
                <td th:text="${orderAdd.goodsModel}"></td>
                <td th:text="${orderAdd.goodsSpecs}"></td>
                <td th:text="${orderAdd.goodsNum}"></td>
                <td th:text="${orderAdd.goodsPrice}"></td>
                <td th:text="${orderAdd.goodsNum*orderAdd.goodsPrice}"></td>
                <td th:text="${orderAdd.goodsUnit}"></td>
                <td th:text="${orderAdd.remarks}"></td>
            </tr>
        </table>
        <form action="/orderAddFinal">
        <div>
            <label for="customerName" class="layui-slider-input-txt layui-inline">客户名字</label>
            <div class="layui-form-item layui-inline">
                <input type="text" id="customerName" name="customerName" required=""
                       autocomplete="off" class="layui-input ">
            </div>
            <label for="transport" class="layui-slider-input-txt layui-inline">运输方式</label>
            <div class="layui-form-item layui-inline">
                <input type="text" id="transport" name="transport"
                       autocomplete="off" class="layui-input ">
            </div>
            <button class="layui-btn">确认订单无误，开始生成订单</button>
        </div>

        </form>
    </div>
</body>
</html>